package com.example.admin_oa.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.comment_oa.pojos.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
* @author cjl
* @description 针对表【sys_user_role】的数据库操作Mapper
* @createDate 2022-10-18 15:34:44
* @Entity com.example.admin_oa.model.pojo.SysUserRole
*/
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
//    查询用户角色
    Set<String> selectAllByUserId(@Param("userId") int userId);

    List<SysUserRole> selectByUserId(@Param("userId") int userId);
    //批量新增
    int insertBatch(List<SysUserRole> userRoles);
}




